#include "ctrlbar.h"
#include "ui_ctrlbar.h"
#include <QDebug>

ctrlbar::ctrlbar(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::ctrlbar)
{
    ui->setupUi(this);

    //
    QIcon icon_pause(":/ctrl/icon/play.png");
    ui->pasuebtn->setIcon(icon_pause);

    //
    QIcon icon_stop(":/ctrl/icon/stop.png");
    ui->stopbtn->setIcon(icon_stop);


}

ctrlbar::~ctrlbar()
{
    delete ui;
}

void ctrlbar::on_pasuebtn_clicked()
{
    qDebug()<<"onpause";
    signalPlyaOrPause();
}

void ctrlbar::on_stopbtn_clicked()
{
   qDebug()<<"stopbtn clicked";
}
